package com.rainy.sso.common.service;

import org.springframework.stereotype.Service;
import java.util.List;
import javax.annotation.Resource;
import com.rainy.sso.common.dao.ApplicationDao;
import com.rainy.sso.client.entity.Application;
import com.rainy.sso.client.service.ApplicationService;

/**
* @author liuqin on 2017-12-24 11:28:45
*/
@Service("applicationService")
public class ApplicationServiceImpl implements ApplicationService {

	@Resource
	private ApplicationDao applicationDao;

    @Override
    public List<Application> list(Long offset, Long limit){
		return applicationDao.list(offset,limit);
	}

    @Override
    public Long count(Long offset,Long limit){
        return applicationDao.count(offset,limit);
	}

    @Override
    public Application queryApplicationById(Integer id){
        return applicationDao.queryApplicationById(id);
	}

	@Override
	public Application queryApplicationByAppId(String appId) {
		return applicationDao.queryApplicationByAppId(appId);
	}

	@Override
	public void save(Application application){
		applicationDao.save(application);
	}

	@Override
	public void delete(Long id) {
		applicationDao.delete(id);
	}

	@Override
	public void update(Application application){
		applicationDao.update(application);
	}
	


	
}
